﻿@using (Script.Foot())
{
    <script type="text/javascript">
        //<![CDATA[
        alert();
        $(function () {
            try {
                var result = {
                    id: "@Model.ContentId",
                    displayText: "@Model.DisplayText"
                };

                window.opener.jQuery["@Model.Callblack"](result);
            } catch (ex) {
                alert("@T("The requested operation could not be done")");
                alert(ex);
            }
            setTimeout(function () { window.close(); }, 100);
            alert();
        });
        //]]>
    </script>
}
